#include <iostream>
#include <fstream>
#include <stdint.h>

using namespace std;

int main()
{
  int c;  
  while (cin>> hex >>c) cout.put(c);    
}
